//
//  Common.swift
//  Swift -- 微博
//
//  Created by sks on 16/6/26.
//  Copyright © 2016年 mohaha. All rights reserved.
//

import UIKit


//切换根控制器标识
let SwitchRootVcNoti = "SwitchRootVcNoti"

let APPKEY = "2358944825"
let APPSECRET = "a1c660ea67e0142247b40c4c4549102b"
let redirect_uri = "https://www.baidu.com/"




let SCREENW = UIScreen.mainScreen().bounds.size.width
let SCREENH = UIScreen.mainScreen().bounds.size.height


//主题颜色

func RBG(red: CGFloat, green: CGFloat, blue: CGFloat) -> UIColor{
    return UIColor(red: red / 255, green: green / 255, blue: blue / 255, alpha: 1)
}
//随机颜色
func RandomColor() ->UIColor {
    
    let R = CGFloat(random()%256)
    let G = CGFloat(random()%256)
    let B = CGFloat(random()%256)
    
    return RBG(R, green: B, blue: G)
    
}





